using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;using Maxleaf.EDI.Domain.K3;

namespace Maxleaf.EDI.DataAccess.K3
{
    public class t_ICItemStandardMap : EntityTypeConfiguration<t_ICItemStandard>
    {
        public t_ICItemStandardMap()
        {
            // Primary Key
            this.HasKey(t => t.FItemID);

            // Properties
            this.Property(t => t.FItemID)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            // Table & Column Mappings
            this.ToTable("t_ICItemStandard");
            this.Property(t => t.FItemID).HasColumnName("FItemID");
            this.Property(t => t.FStandardCost).HasColumnName("FStandardCost");
            this.Property(t => t.FStandardManHour).HasColumnName("FStandardManHour");
            this.Property(t => t.FStdPayRate).HasColumnName("FStdPayRate");
            this.Property(t => t.FChgFeeRate).HasColumnName("FChgFeeRate");
            this.Property(t => t.FStdFixFeeRate).HasColumnName("FStdFixFeeRate");
            this.Property(t => t.FOutMachFee).HasColumnName("FOutMachFee");
            this.Property(t => t.FPieceRate).HasColumnName("FPieceRate");
        }
    }
}
